ShadowsListView
A custom ListView that implements ShadowsViewGroup.
Apart from the additional handling of the library's shadow properties and draw operations, this group behaves just like its base class.
Constructors
Properties
A single color compat value to set on all children added during initialization.
The ShadowPlane to set on all child Views as they're added during initialization.
If true, sets clipOutlineShadow to true on all child Views as they're added during initialization.
The current state of the clipped shadow fix for the receiver View.
If true, sets forceOutlineShadowColorCompat to true on all child Views added during initialization.
Determines whether the color compat mechanism should be forced if the current API level is 28 or above.
A patch fix for potential clip defects on API levels 24..28, when a target's parent ViewGroup has a non-identity matrix applied.
Determines whether the group will take over the draw operations for Inline shadows.
The current color compat value for the receiver View.
The ViewPathProvider used by clipOutlineShadow for irregular shapes on API levels 30+.
The current ShadowMode of the receiver's shadow.
The current ShadowPlane for the receiver View's library shadow.
Determines whether the group will take over the draw operations for Inline shadows.
Functions
Callback for ShadowMode changes. The target View is passed as the receiver for action, allowing for unqualified access to its members.
Convenience for completely resetting a target's shadow state, removing the library shadow if present, and restoring the (presumably broken) native one.
Allows for efficient modification of multiple shadow properties at once, pausing potentially redundant internal operations until block completes. This functionality is particularly helpful in recycling Adapters that set more than one shadow property.